﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace PlatformNetCore.Entity
{
    /// <summary>
    /// 邮件模板
    /// </summary>
    [Table("SmtpTemplate")]
    public class SmtpTemplate
    {
        [Key]
        [MaxLength(50)]
        public string ID { get; set; }
        /// <summary>
        /// 邮件主题
        /// </summary>
        [MaxLength(100)]
        public string Title { get; set; }
        /// <summary>
        /// 模板编号：T001
        /// </summary>
        [MaxLength(50)]
        public string SmtpCode { get; set; }
        /// <summary>
        /// 邮件模板
        /// </summary>
        public string Content { get; set; }
        [MaxLength(50)]
        public string AddBy { get; set; }
        public Nullable<DateTime> AddDate { get; set; }
        [MaxLength(50)]
        public string UpdateBy { get; set; }
        public Nullable<DateTime> UpdateDate { get; set; }
    }
}
